package com.aaa.demo04;

/**
 * @author ${崔灿}
 * @date 2022/10/31 17:55
 **/

public class BankTest {
    public static void main(String[] args) {
        BankCark bankCark = new BankCark(0);

        Boy boy = new Boy(bankCark);

        Girl girl = new Girl(bankCark);

        Thread thread1 = new Thread(boy , "cc");
        Thread thread2 = new Thread(girl , "hyy");

        thread1.start();
        thread2.start();
    }
}
